package com.jee.ssm.modules.users.app;

import com.jee.ssm.model.Users;
import com.jee.ssm.modules.users.services.UsersService;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import javax.annotation.Resource;

/**
* 用户管理 客户端 Controller
* @author GaoXiang
* @version 1.0
*/
@Controller
@RequestMapping("/app/users")
public class AppUsersController {


    /**
     * 描述： 跳转前台评分页面
     * 创建时间：2020/10/11  YanZengBao
     * 修改时间：2020/10/11  YanZengBao 加注释
     * 修改时间：
     */
    @RequestMapping("/sweepCode")
    public String  sweepCode(String userId, ModelMap modelMap){
        Users users = usersService.selectById(userId);
        if(users !=null){
            String userName = users.getName();
            modelMap.put("userName",userName);
            modelMap.put("userId",userId);
            modelMap.put("users",users);
        }
        return  "front/index1";
    }



    //---------------------------- property -------------------------------

    @Resource
    private UsersService usersService;

}
